package cn.com.czpb.client.model.news;

import org.litepal.crud.DataSupport;

import java.util.List;

/**
 * Created by 猪猪侠 on 2017/7/6.
 */

public class SearchHisBean extends DataSupport {
    private String content;

    public SearchHisBean(String content) {
        this.content = content;
    }

    @Override
    public synchronized boolean save() {
        List<SearchHisBean> mybena = DataSupport.where("content = ?",content).find(SearchHisBean.class);
        if(mybena.size()>0){
            return false;
        }else{
            return super.save();
        }
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }
}
